package com.mol.market.ui_v4;

import android.os.Bundle;

import com.actionbarsherlock.app.ActionBar;
import com.actionbarsherlock.app.SherlockFragmentActivity;
import com.mol.market.Session;

/**
 *
 * 基类
 *
 * Author: Andrew.Wang
 * Date  : 12-12-10
 */
public class BaseActivity extends SherlockFragmentActivity {

    /**
     * ActionBar
     */
    protected ActionBar mActionBar;
    protected Session mSession;

    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mActionBar = getSupportActionBar();
        mSession = Session.get(this);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        mActionBar = null;
        mSession = null;
    }
}